//
//  DerbyNSOde.h
//  DerbyOSSampler
//
//  Created by glenn andreas on 1/6/14.
//  Copyright (c) 2014 glenn andreas. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSString *DerbyNSOdePEER;
extern NSString *DerbyNSOdeHELO;
extern NSString *DerbyNSOdeNAME;
extern NSString *DerbyNSOdeCHAT;
extern NSString *DerbyNSOdeXMSG;
extern NSString *DerbyNSOdeGBYE;
extern NSString *DerbyNSOdeDNSType;
@class DXMLBoutObject;
@class DXMLObject;
@class DerbyNSOdePeer;
@class DerbyBoutState;
@interface DerbyNSOde : NSObject
@property (strong, nonatomic) DerbyBoutState *boutState;
@property (strong) DXMLBoutObject *xml;
- (id) initWithContext: (void *) ctx;

- (void) chat: (NSString *) msg;
- (void) sendXML: (DXMLObject *) xml;
- (void) sendXML: (DXMLObject *) xml toPeer: (DerbyNSOdePeer *) peer;
- (void) tellAllPeers: (NSString *) msg body: (NSString *) body;


- (void) pollInBackground;
- (void) stopPolling;
@end
